package com.jinzhi.sys.dao;

import com.jinzhi.common.base.BaseDao;
import com.jinzhi.sys.domain.UserDO;
import com.jinzhi.sys.domain.UserDetailDO;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <pre>
 * </pre>
 * <small> 2018年3月23日 | Aron</small>
 */
public interface UserDao extends BaseDao<UserDO> {
	
	Long[] listAllDept();

	UserDO getuserWx(String wxcode);

	//修改机构信息为空
	int updayeOrg(UserDO userDO);

	Long userPhone(String phone);

	String userNamegetId(Long userId);

	//查询用户ID
	UserDO getByUserId(Long userId);

	//通过用户id查询用户详情信息
	UserDetailDO getByUserDetailId(Long id);

	//编辑用户信息更新数据
	int updateUserDetail(UserDetailDO userDetailDO);

	//查询用户绑定手机号
	UserDO getMobile(String mobile);

	//查询用户绑定身份证
	UserDO getIdNumber(String idNumber);

//	List<UserDO> selectListByPhoneAndIdNumber(@Param("phoneList") List<String> phoneList,@Param("idNumberList") List<String> idNumberList);

	List<UserDO> selectListByPhoneAndIdNumber(@Param("phoneList") List<String> phoneList, @Param("idNumberList") List<String> idNumberList);

}
